﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObviousCode.UI.Aspect.PluginLibrary.Interfaces;
using ObviousCode.Common.Utils.Library.Dictionaries.Persistance;
using ObviousCode.Common.Utils.Library.Dictionaries;
using ObviousCode.UI.Aspect.Persistence.AspectDesigner.Savers;

namespace ObviousCode.UI.Aspect.Persistence.AspectDesigner.Loaders
{
    public abstract class DesignerLoader : Loader<IAspectDesigner>
    {           
        public abstract override PropertyArray AllowVersions { get; }  

        public abstract override int BackwardsCompatTo { get; }
        
        public abstract override PropertyArray RejectVersions { get; }

        public abstract override int Version { get; }

        protected abstract override void PerformLoad(IAspectDesigner parent, PropertyDictionary saveData);

        public static DesignerLoader LatestVersion
        {
            get
            {
                return new DesignerLoader_V1();
            }
        }

        public override string Tag
        {
            get { return DesignerSaver.ObjectTag; }
        }
    }
}
    